/*
* This file is the root component
* */

import React, {Component} from 'react'
import {BrowserRouter as Router,Route,Switch} from "react-router-dom";
import Login from './pages/login/login'
import Admin from './pages/admin'

export default class App extends Component {
  render () {
    return (
      <Router>
        <Switch>
          <Route path='/login' component={Login}/>
          <Route path='/' component={Admin}/>
        </Switch>
      </Router>
    )
  }
}

